package com.sdp.irrigation.db.irrigation_emp.service.impl;

import com.sdp.irrigation.entity.IrrigationEmp;
import com.sdp.irrigation.db.irrigation_emp.mapper.IrrigationEmpMapper;
import com.sdp.irrigation.db.irrigation_emp.service.IIrrigationEmpService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 人员档案 服务实现类
 * </p>
 *
 * @author zsp
 * @since 2024-12-14
 */
@Service
public class IrrigationEmpServiceImpl extends ServiceImpl<IrrigationEmpMapper, IrrigationEmp> implements IIrrigationEmpService {

	@Override
	public IrrigationEmp queryIrrigationEmpByEmpNo(String empNo) {
		LambdaQueryWrapper<IrrigationEmp> lambdaQueryWrapper = new LambdaQueryWrapper<>();
		lambdaQueryWrapper.eq(IrrigationEmp::getEmpNo, empNo);
		return getOne(lambdaQueryWrapper,false);
	}

}
